package com.waidi.clothespad.common;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ll on 2018-08-28.
 */

public class VerData implements Parcelable {

    public String ver ;
    public String fileurl;
    public String apkname;

    public VerData()
    {
        ver = null;
        fileurl = null;
        apkname = null;
    }
    public  VerData(Parcel in)
    {
        //顺序要和writeToParcel写的顺序一样
        ver = in.readString();
        fileurl =in.readString();
        apkname = in.readString();
    }
    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }
    @Override
    public void writeToParcel(Parcel dest, int flags)
    {
        dest.writeString(ver);
        dest.writeString(fileurl);
        dest.writeString(apkname);
    }

    public static final Parcelable.Creator<VerData> CREATOR = new Parcelable.Creator<VerData>() {
        public VerData createFromParcel(Parcel in) {
            return new VerData(in);
        }

        public VerData[] newArray(int size) {
            return new VerData[size];
        }
    };

}
